package de.metalcon.gwt.client.modules;

import java.util.Map;

import com.google.gwt.user.client.ui.Label;

import de.metalcon.gwt.client.Metalcon;
import de.metalcon.gwt.client.mainDesign.Box;
import de.metalcon.gwt.client.mainDesign.MainContent;
import de.metalcon.gwt.shared.ContentTransmitter;

public class TestModule extends ADynamicModule {
	public TestModule() {
		addReuqestVar("TEST", "asdf2");
	}

	@Override
	protected void generateContent() {
		ContentTransmitter transmitter = getContentTransmitter();
		Box box = new Box();
		add(box);

		for (Map.Entry<String, Object> entry : transmitter.getAllPairs()) {
			Label caption = new Label(entry.getKey() + " : " + entry.getValue());
			box.add(caption);
		}
	}
}
